package router

import (
	"gin_chat_demo/middleware"
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	router := gin.Default()
	router.Use(middleware.Cors())
	router.Use(middleware.RecoverMiddleware())

	return router
}
